<div class="well login-mini-content">
	<div class="row-fluid" id="login">
		<?php if(!Yii::app()->user->isGuest) {?>
			<img class="img-polaroid img-rounded" id="avatar" alt="avatar" src="<?php echo $avatar ?>">
  		<div id="user">
  			<ul>
  				<?php if(!checkStudent(Yii::app()->user->id)) {?>
  				<li><a href="<?php echo Yii::app()->baseUrl?>/admin">Trang quản trị</a></li>
  				<?php }?>
  				<li><a href="<?php echo Yii::app()->baseUrl?>/user/profile">Trang cá nhân</a></li>
  				<li><a href="<?php echo Yii::app()->baseUrl?>/user/balance">Số dư tài khoản <b><?php echo UserBalance::model()->getBalance(Yii::app()->user->id)?></b> VND</a></li>
  				<?php if(checkStudent(Yii::app()->user->id)) {?>
  				<li><a href="#">Lịch sử học tập</a></li>
  				<?php }?>
  				<li><a href="<?php echo Yii::app()->baseUrl?>/site/logout">Đăng xuất</a></li>
  			</ul>
  		</div>
  		<a href="<?php echo Yii::app()->baseUrl?>/user/balance#deposit"><button type="button" class="deposit btn btn-danger">Nạp thẻ VIP</button></a>
		<?php } ?>
	</div>
</div>
